﻿using CPPEI.WebApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestWebApi2
{
    [GetAction("string","get", "1.0")]
    public class StringGetAction : BaseAction<StringGetParam, StringGetResult>
    {
        protected override ActionResult<StringGetResult> OnExecute(ActionContext context, SysParams sysParams, StringGetParam opParams)
        {
            StringGetResult result = new StringGetResult();
            result.Value = DateTime.Now.Ticks.ToString();
            return new ActionResult<StringGetResult>(result);
        }
    }

    public class StringGetParam
    {

    }

    public class StringGetResult
    {
        public string Value { get; set; }
    }
}
